import request from '@/utils/request'

export function getData(data) {
  return request({
    url: '/order/list',
    method: 'get',
    params: data
  })
}
export function getLine(data) {
    return request({
      url: '/line/list',
      method: 'get',
      data: data
    })
  }
export function addData(data) {
    return request({
      url: '/order',
      method: 'post',
      data: data
    })
  }
  export function putData(data) {
    return request({
      url: '/order',
      method: 'put',
      data
    })
  }
  export function getUser(data) {
    return request({
      url: '/system/user/list',
      method: 'get',
      params:data
    })
  }
  export function getMerge(data) {
    return request({
      url: '/order/merge',
      method: 'put',
      data:data
    })
  }
  export function getcause(data) {
    return request({
      url: '/order/stop',
      method: 'put',
      data:data
    })
  }
  export function getsplit(data) {
    return request({
      url: '/order/split',
      method: 'put',
      data
    })
  }
  export function ruSure(data) {
    return request({
      url:'/order/insert',
      method:'put',
      data
    })
  }
  export function getRules(data) {
    return request({
      url:'/order/check',
      method:'get',
      params:data
    })
  }
  export function dange(id){
    return request({
      url:`/order/del/${id}`,
      method:'delete'
    })
  }
  export function gerDep(data) {
    return request({
      url: '/system/dept/list',
      method: 'get',
      params:data
    })
  }